package service.impl;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import dao.StudentDao;
import po.Student;
import po.User;
import service.StudentService;


@Service("studentService")
@Transactional
public class StudentServiceImpl implements StudentService {
	@Autowired
	private StudentDao studentDao;

	@Override
	public List<Student> getStudentList() {
		return studentDao.getList();
	}

	@Override
	public int deleteStudent(Integer studentid) {
		return studentDao.delStudent(studentid);
	}

	@Override
	public int addStudent(Student student) {
		return studentDao.addStudent(student);
	}

	@Override
	public Student getStudentId(Integer id) {
		return studentDao.getStudentId(id);
	}

	@Override
	public int updateStudent(Student student) {
		return studentDao.updateStudent(student);
	}

	@Override
	public List<Student> findList(String data) {
		return studentDao.findList(data);
	}


}
